package com.summer.JUnit;

public class Bearing {

	protected int bearing;
	
	public Bearing(int num_degrees){
		if(num_degrees <0 || num_degrees >359)
			throw new RuntimeException("Bad bearing");
		bearing = num_degrees;
	}
	
	public int angleBetween(Bearing anOther){
		return bearing - anOther.bearing;
	}
}
